import importlib
from src.utility import merge_object

def load_params(params):
    for params_set in params.params_set:
        m = importlib.import_module("params." + params_set)
        new_params = getattr(m, params_set)
        params = merge_object(params, new_params)
    return params